import request from '@/utils/request'

// 查询旅游报警信息列表
export function listTravelAlarm(query) {
  return request({
    url: '/basicInformation/travelAlarm/list',
    method: 'get',
    params: query
  })
}
// 查询旅游报警信息列表
export function listForMap(query) {
  return request({
    url: '/basicInformation/travelAlarm/listForMap',
    method: 'get',
    params: query
  })
}
// 查询旅游报警信息详细
export function getTravelAlarm(id) {
  return request({
    url: '/basicInformation/travelAlarm/' + id,
    method: 'get'
  })
}

// 新增旅游报警信息
export function addTravelAlarm(data) {
  return request({
    url: '/basicInformation/travelAlarm',
    method: 'post',
    data: data
  })
}

// 修改旅游报警信息
export function updateTravelAlarm(data) {
  return request({
    url: '/basicInformation/travelAlarm',
    method: 'put',
    data: data
  })
}

// 删除旅游报警信息
export function delTravelAlarm(id) {
  return request({
    url: '/basicInformation/travelAlarm/' + id,
    method: 'delete'
  })
}

// 导出旅游报警信息
export function exportTravelAlarm(query) {
  return request({
    url: '/basicInformation/travelAlarm/export',
    method: 'get',
    params: query
  })
}
